package com.googlecode.smartbinding.framework;

import com.googlecode.smartbinding.framework.core.Bindable;
import com.googlecode.smartbinding.framework.core.Binding;
import com.googlecode.smartbinding.framework.core.EventType;

/**
 * User: RaduGhiorma@gmail.com
 * Date: 16.06.2012
 * Time: 14:33
 */
@Bindable(source = SourceObject.class)
public class TargetObject {
    @Binding(property = "username", events = EventType.MODIFY, targetProperty = "")
    private String myUsername;
    @Binding(property = "age", events = EventType.MODIFY, targetProperty = "")
    private int myAge;
    @Binding(property = "someLongNumber", events = EventType.MODIFY)
    private Long myLongNumber;

    public String getMyUsername() {
        return myUsername;
    }

    public void setMyUsername(String myUsername) {
        this.myUsername = myUsername;
    }

    public int getMyAge() {
        return myAge;
    }

    public void setMyAge(int myAge) {
        this.myAge = myAge;
    }

    public Long getMyLongNumber() {
        return myLongNumber;
    }

    public void setMyLongNumber(Long myLongNumber) {
        this.myLongNumber = myLongNumber;
    }
}
